package com.dec_nono.basicjava.serializable;

import java.io.Serializable;

public class test implements Serializable {

    private static final long serialVersionUID = 3214138430317764823L;

    //name属性将被序列化
    private String name;

    //transient 修饰的变量不会被序列化
    private transient int salary;

    static int age = 100;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
